home *** CD-ROM | disk | FTP | other *** search
/ Resource for Source: C/C++ / Resource for Source - C-C++.iso / codelib8 / v_10_09 / 1009022a < prev    next >
Encoding:
Text File  |  1995-11-01  |  334 b   |  20 lines

  1. // LISTING 3
  2.  
  3. #ifndef EXCEPTION_H
  4. #define EXCEPTION_H
  5.  
  6. /*
  7.     stype() and type() are the same function, the difference is
  8.     that stype() can be called without an instance, like
  9.         Exception::stype();
  10. */
  11.  
  12. class Exception {
  13. public:
  14.     static stype {return 0;}
  15.     virtual type() {return 0;}
  16.     virtual size() {return sizeof(Exception);}
  17. };
  18.  
  19. #endif
  20.